package com.training.bt.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.training.bt.entity.Tag;

public interface TagMapper extends BaseMapper<Tag>{

    @Select("SELECT EXISTS(SELECT 1 FROM tag WHERE name = #{name})")
    Integer existsByName(@Param("name") String name);
    
}
